package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.Account;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AccountDAO {
    Account getAccountByUsername(String username);

    Account getAccountByUsernameAndPassword(Account account);

    void insertAccount(Account account);

    void insertProfile(Account account);

    void insertSignOn(Account account);

    void updateAccount(Account account);

    void updateProfile(Account account);

    void updateSignOn(Account account);

    //后台管理部分用户信息查看
    List<Account> getAccountList();



}
